home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 September
/
Macworld (1997-09).dmg
/
Shareware World
/
Utilities
/
Text Processing
/
Alpha
/
Tcl
/
ElectricAlias
/
Aliases
/
aliases.Perl
< prev
next >
Wrap
Text File
|
1994-06-18
|
1KB
|
26 lines
# FILE: aliases.Perl
#
# DESC: Aliases for Perl mode
#
# LAST UPDATE: 01/06/93 5:29:47 AM
electricAlias-def •Perl •Perl •Perl
electricAlias-var Perl bb "\{"
electricAlias-var Perl eb "\}"
electricAlias-var Perl bc "#"
electricAlias-var Perl ec ""
electricAlias-def •Perl #! "§«askalias {File name} NAME»#! /usr/local/bin/perl -f\r#\r# §{NAME}•\r\r•"
electricAlias-def •Perl sub "§«askalias {subroutine name} NAME»sub §{NAME} \{\r\tlocal (•)=@_;\r\t•\r\}§{bc}endsub §{NAME}§{ec}•"
electricAlias-def •Perl \{ "\{\r\t•\r\}•"
electricAlias-def •Perl do "do \{\r\t•\r\} while (•);•"
electricAlias-def •Perl for "for (•;•;•) \{\r\t•\r\}§{bc}endfor§{ec}•"
electricAlias-def •Perl foreach "foreach • (•) \{\r\t•\r\}§{bc}endforeach§{ec}•"
electricAlias-def •Perl while "while (•) \{\r\t•\r\}§{bc}endwhile§{ec}•"
electricAlias-def •Perl until "until (•) \{\r\t•\r\}§{bc}enduntil§{ec}•"
electricAlias-def •Perl if "if (•) \{\r\t•\r\}§{bc}endif§{ec}•"
electricAlias-def •Perl unless "unless (•) \{\r\t•\r\}§{bc}endunless§{ec}•"
electricAlias-def •Perl elsif "\b\} elsif (•) \{\r•"
electricAlias-def •Perl elseif "\b\} elsif (•) \{\r•"
electricAlias-def •Perl else "\b\} else \{\r•"